<template>
  <div class="brand-wrapper">
    <div class="pic">
      <img :src="brandInfo.cover" alt />
    </div>
    <div class="desc">
      <div class="name">{{brandInfo.name}}</div>
      <div class="info">{{brandInfo.description}}</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    brandInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/mixin.scss";
.brand-wrapper {
  width: 3.12rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .pic {
    width: 100%;
    height: 3.35rem;
    img {
      height: 100%;
    }
  }
  .desc {
    margin-top: 0.46rem;
    .name {
      font-size: 0.3rem;
      font-family: PingFang SC;
      font-weight: 500;
      color: rgba(4, 0, 0, 1);
    }
    .info {
      font-size: 0.22rem;
      font-family: PingFang SC;
      font-weight: 300;
      color: rgba(51, 51, 51, 1);
      line-height: 0.36rem;
      @include ellipsisTwo();
      margin-top: 0.22rem;
    }
  }
}
</style>
